cmake_minimum_required(VERSION 3.10.0)
project(health-server VERSION 0.1.0)

set(CMAKE_C_STANDARD 99)

set(SORUCES
        common/rabbitmq_api.c
        common/rabbitmq_utils.c
        common/config.c
        src/server.c
        src/thread_pool.c
        )

add_executable(${PROJECT_NAME} ${SORUCES})

target_include_directories(${PROJECT_NAME}
        PRIVATE
        ${PROJECT_SOURCE_DIR}/common
        ${PROJECT_SOURCE_DIR}/headers
        )

#target_include_directories(${PROJECT_NAME}
#        PRIVATE
#        )

target_link_libraries(${PROJECT_NAME}
        -lcjson
        -lpthread
        -lrabbitmq
        )

target_compile_definitions(${PROJECT_NAME}
        PRIVATE DEBUG
        )
